package com.cmbc.practice;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 通过构造器创建bean
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext context=new ClassPathXmlApplicationContext("META-INF/person.xml");
        Chinese c=context.getBean(Chinese.class);
        c.say();
        American a=context.getBean(American.class);
        a.say();
    }
}
